<% content_for :css do %>
  <%= stylesheet_link_tag 'index','installations_index' %>
<% end %>
<% content_for :title do %>-安装查询<% end %>
<div class='top'>
  <div class='title'>
    <b>上门安装</b><span>安装查询</span>
  </div>
</div>
<div class="search">
  <%= form_tag installations_url,
        :method => :get do %> 
    <%= text_field_tag :key_words, params[:key_words] ,:class => :search, :onfocus => 'select()' %>
    <%= submit_tag '找安装单', :class => :bb %>
    <%= link_to '下派工单', installations_url, :method => :post, :class => :new, :target => :_blank %>
  <% end %>
</div>
<div class="page">
  <div class="total_currnet"><p>共</p><b><%= @installations.size %></b><p>条安装单</p></div>
</div>
<div class="index">
<% @installations.each do |installation|  %>  
  <div id='installation_<%= installation.id %>' class="monomer">
    <%= render :partial => 'installation_in_index.html', :locals => { :installation => installation } %>
  </div>
<% end %>  
</div>
<div class="page">
  <div class="total_currnet"><p>共</p><b><%= @installations.size %></b><p>条订单记录</p></div>
</div>
        